On the dynamic extent of delimited continuations

نویسندگان

  • Dariusz Biernacki
  • Olivier Danvy
  • Chung-chieh Shan
چکیده

We show that breadth-first traversal exploits the difference between the static delimited-control operator shift (alias S) and the dynamic delimited-control operator control (alias F). For the last 15 years, this difference has been repeatedly mentioned in the literature but it has only been illustrated with one-line toy examples. Breadth-first traversal fills this vacuum. We also point out where static delimited continuations naturally give rise to the notion of control stack whereas dynamic delimited continuations can be made to account for a notion of ‘control queue.’

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Theory and Practice of Programming Languages with Delimited Continuations

This dissertation presents a study of functional programming languages with first-class delimited continuations. We focus mainly on theoretical and practical aspects of Danvy and Filinski’s hierarchy of static delimited-control operators shiftn and resetn, and of Felleisen’s dynamic delimited-control operators control and prompt. Our study uses the traditional means of specifying semantics of f...

متن کامل

On the static and dynamic extents of delimited continuations

We show that breadth-first traversal exploits the difference between the static delimited-control operator shift (alias S) and the dynamic delimited-control operator control (alias F). For the last 15 years, this difference has been repeatedly mentioned in the literature but it has only been illustrated with one-line toy examples. Breadth-first traversal fills this vacuum. We also point out whe...

متن کامل

Partial Continuations as the Diierence of Continuations a Duumvirate of Control Operators ?

We deene a partial continuation as the diierence of two continuations. We exhibit, in a single framework, several design choices and their impact on semantics. The ability of partial continuations to manipulate stack frames blurs the nature of dynamic extent; therefore, we introduce a new concept of preexal extent that characterises the time during which a partial continuation can be reiied. We...

متن کامل

Partial Continuations as the Difference of Continuations - A Duumvirate of Control Operators

We de ne a partial continuation as the di erence of two continua tions We exhibit in a single framework several design choices and their impact on semantics The ability of partial continuations to manipulate stack frames blurs the nature of dynamic extent therefore we introduce a new concept of pre xal extent that characterises the time during which a partial continu ation can be rei ed We prop...

متن کامل

A Type System for Dynamic Delimited Continuations

We study the control operators ”control” and ”prompt” which manage part of continuations, that is, delimited continuations. They are similar to the well-known control operators ”shift” and ”reset”, but differ in that the former is dynamic, while the latter is static. In this paper, we introduce a static type system for ”control” and ”prompt” which does not use recursive types. We design our typ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Inf. Process. Lett.

دوره 96  شماره 

صفحات  -

تاریخ انتشار 2005